win32 {
    CONFIG(debug, debug|release) {
        LIBDIR = $$PWD/lib/Windows/MDd
    }
    else {
        LIBDIR = $$PWD/lib/Windows/MD
    }
  
    INCLUDEPATH += $$PWD/include
    INCLUDEPATH += $$PWD/include/third_party/mini_chromium/mini_chromium
    INCLUDEPATH += $$PWD/include/out/Default/gen

    # Crashpad libraries
    LIBS += -L$$LIBDIR -lclient
    LIBS += -L$$LIBDIR -lutil

    # system libraries
    LIBS += -lAdvapi32
}else{ #mac

    # 选择架构 x86_64 或者 arm64
    ARCH = x86_64
    #ARCH = arm64 #所有库也需要编译到arm64
    DEFINES += Arch_$$ARCH


    CONFIG(debug, debug|release) {
        LIBDIR = $$PWD/lib/MacOS/$$ARCH
    }
    else {
        LIBDIR = $$PWD/lib/MacOS/$$ARCH
    }

    #crashpad heads
    INCLUDEPATH += $$PWD/include
    INCLUDEPATH += $$PWD/include/third_party/mini_chromium/mini_chromium
    INCLUDEPATH += $$PWD/include/out/Default/gen

    # Crashpad libraries
    LIBS += -L$$LIBDIR -lcommon
    LIBS += -L$$LIBDIR -lclient
    LIBS += -L$$LIBDIR -lbase
    LIBS += -L$$LIBDIR -lutil
    LIBS += -L$$LIBDIR -lmig_output

    # System libraries
    LIBS += -L/usr/lib/ -lbsm
    LIBS += -framework AppKit
    LIBS += -framework Security
}



